package com.kb.entity.crm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 发票项;
 * @author : 陈志翔
 * @date : 2024-10-15
 */
@Data
@TableName("CRM_InvoiceItem")
@Accessors(chain = true)
public class InvoiceItem implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "recId", type = IdType.AUTO)
    private Integer recId;

    /** 附加费用 */
    @TableField("addCharge")
    private BigDecimal addCharge;

    /** 待确认现金金额 */
    @TableField("amountCashTobeConfirmed")
    private BigDecimal amountCashTobeConfirmed;

    /** 已支付金额 */
    @TableField("amountPaid")
    private BigDecimal amountPaid;

    /** 现金费用已确认 */
    @TableField("cashChargeConfirmed")
    private Boolean cashChargeConfirmed;

    /** 费用已确认 */
    @TableField("chargeConfirmed")
    private Boolean chargeConfirmed;

    /** 核销编号 */
    @TableField("collateNumber")
    private String collateNumber;

    /** 核销单ID */
    @TableField("collateStatementId")
    private Integer collateStatementId;

    /** 核销单项目ID */
    @TableField("collateStatementItemId")
    private Integer collateStatementItemId;

    /** 备注 */
    @TableField("note")
    private String note;

    /** 待确认数量 */
    @TableField("qtyCashTobeConfirmed")
    private Integer qtyCashTobeConfirmed;

    /** 已确认数量 */
    @TableField("qtyConfirmed")
    private Integer qtyConfirmed;

    /** 关联键1 */
    @TableField("D478Rkey")
    private Integer d478Rkey;

    /** 关联键2 */
    @TableField("D60Rkey")
    private Integer d60Rkey;

    /** 子金额 */
    @TableField("subAmount")
    private BigDecimal subAmount;

    /** 税率 */
    @TableField("taxRate")
    private BigDecimal taxRate;

    /** 总金额 */
    @TableField("totalAmount")
    private BigDecimal totalAmount;

    /** 单价 */
    @TableField("unitPrice")
    private BigDecimal unitPrice;

    /** 发票ID */
    @TableField("invoiceId")
    private Integer invoiceId;

    /** 出库单ID */
    @TableField("shipmentId")
    private Integer shipmentId;

    /** 附加费用 */
    @TableField("addFeeing")
    private BigDecimal addFeeing;

    /** 子金额 */
    @TableField("subAmonting")
    private BigDecimal subAmonting;

    /** 数量 */
    @TableField("qtying")
    private Integer qtying;

    /** 运费 */
    @TableField("freightCost")
    private BigDecimal freightCost;

    /** 运费 */
    @TableField("freightCosting")
    private Integer freightCosting;

    /** 箱数 */
    @TableField("sheetQty")
    private Integer sheetQty;

    /** 毛重 */
    @TableField("grossWeight")
    private BigDecimal grossWeight;

    /** 净重 */
    @TableField("netWeight")
    private BigDecimal netWeight;

    /** 成本单价 */
    @TableField("costPrice")
    private BigDecimal costPrice;

    /** 成本金额 */
    @TableField("costAmount")
    private BigDecimal costAmount;

    /** 单位 */
    @TableField("unit")
    private String unit;

    /** 箱数 */
    @TableField("boxs")
    private Integer boxs;

    /** 每箱数量 */
    @TableField("perBox")
    private Integer perBox;

    /** 非箱数 */
    @TableField("nonBoxs")
    private Integer nonBoxs;

    /** 非每箱数量 */
    @TableField("nonPerBox")
    private Integer nonPerBox;

    /** 改价备注 */
    @TableField("changePriceNote")
    private String changePriceNote;

    /** 备注 */
    @TableField("remark")
    private String remark;
}
